package ynu.edu.gateway.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

@RestController
@RequestMapping("/fallback")
public class FallbackController {

    @GetMapping("/provider")
    public Mono<String> providerFallback() {
        return Mono.just("Provider service is temporarily unavailable. Please try again later.");
    }

    @GetMapping("/consumer")
    public Mono<String> consumerFallback() {
        return Mono.just("Consumer service is temporarily unavailable. Please try again later.");
    }
} 